Merge pull request #3 from dynek/master

fixing build for MySQL 5.5
Update dm.cc

fix build err on mysql 5.6.17