fix compilation errors, OSX 10.6-10.9

* add missing headers
* https://github.com/Swordifish90/cool-old-term/issues/12
Merge pull request #58 from guitorri/osx-headers

fix compilation errors, OSX 10.6-10.9