OS X: fix MySQL compilation