Merge pull request #79 from Eyescale/master

Fix build
Hotfix for cppcheck errors
Merge pull request #81 from tribal-tec/master

Hotfix for cppcheck errors
Merge pull request #82 from Eyescale/master

Use std:: functions for better performance
Bump CMake external to fix OS X build