import cmake.mk and shebangfix.mk from the master

they are required by the latest mysql55
import mysql 5.5.37 from the master