add CMake support to build gtest
allow to disable 'useMpr' without crash
Fix linking errors for cmake build on Linux

Missing mainly libX11 and friends
Fix cmake build (for case sensitive fs)