cmake: Allow to easily change CMAKE_BUILD_TYPE.

XXX: Does not belong here, Hydra pickup commit only.