fix a bug in build_detect_platform that misses -DROCKSDB_PLATFORM_POSIX in COMMON_FLAGS