cmake 3.0.0 compatibility and per build type compile options