Fix incorrect CXX FLAGS platform checking.