Added ARM support

Fixed some build problems preventing PTAM to build on ARM systems.

Tested on Odroid X2 --> everything working, also fixes a grid drawing issue.