mysql: update to 5.1.66 and clean up the makefile, fixes #11065