fix compile errors

fix issue #629
Merge branch 'master' of github.com:po-devs/pokemon-online