./configure --with-libdir=lib64 --with-mysql
This is probably obvious to most but I needed to do this to make PHP compile using mysql against the 64 bit header files:
Stories
./configure --with-libdir=lib64 --with-mysql