Maybe you can modify your CFLAGS env var to include /usr/include/mysql too.