fix MySqlException compile error & Makefile link error

    * fix MySqlException compile error
    * fix Makefile error