Thank you for reporting and extensive explanation. I will look at it and see what is the best option. I think we should get rid of that removal of 'mysql' in the include path computed inside the Makefile.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/419#issuecomment-159960674