fix more warnings, implement missing X11 function for dynamic loading
Merge pull request #217 from erwincoumans/master

fix more warnings, implement missing X11 function for dynamic loading