Added gperftools profiler, buildsystem options, some utilities

Should be all good for merging. Needs testing on Mac OS, though.

Spot the difference:
![openage_2014-11-15_07-33-47_00](https://cloud.githubusercontent.com/assets/796624/5056785/cfe08bd2-6c99-11e4-85ab-548ec1768b08.png)

yeah...