[CMake] Check for -fPIE and -ffreestanding flags for consistency