Add flags according CMAKE_BUILD_TYPE