Make build type detection working.