Use c++03 standard
Fix compilation of Device
Fix compilation of terrain_main.cpp
Fix include paths of tools directory
Fix #include to non-existent header
Use stdint.h instead of cstdint since the latter requires c++11