Math library changes and fixes
Minor changes in terrain code
Refactored camera related code in order to use ml library