fix crash when connect to mysql4.1
fix prepared statement error in mysql4.1
mini refactor
fix code style
Merge pull request #114 from s7v7nislands/master

Fix connect to MySQL 4.1