Fix travis compilation

It took 30 commits, but this fixes #84 and supersedes #83
```txt
[23:10] <usandfriends> nice
[23:10] <usandfriends> whooh
[23:10] <LB--> OMG
[23:10] == travis-ci [~travis-ci@ec2-54-145-179-166.compute-1.amazonaws.com] has joined #chessplusplus
[23:10] <travis-ci> Build #159 at LB--/ChessPlusPlus/master took 3 min 26 sec
[23:10] <travis-ci> Nicholas "LB" Braden 57fec50 "-lXrandr" https://github.com/LB--/ChessPlusPlus/compare/47cb3c31e06b...57fec50b2f68
[23:10] <travis-ci> The build was fixed. http://travis-ci.org/LB--/ChessPlusPlus/builds/45518342
[23:10] == travis-ci [~travis-ci@ec2-54-145-179-166.compute-1.amazonaws.com] has left #chessplusplus []
[23:10] <usandfriends> Congratz!!!!
[23:10] * LB-- is so happy
```