Altered Makefile so that mysql-realted flags appear at last