Fixes for compilation warnings/errors

Ignore the .travis.yml file for now, it is related to travis-ci.org and I'm still working on it.
The other changed files fix two issues:
1. warning: 'XKeycodeToKeysym' is deprecated on unix hosts
2. if __STRICT_ANSI__ is defined the _controlfp function is not defined in some versions of mingw-gcc