Set compiler flags before attempting checks for libraries.
std::forward is in the utility header
Some compiler versions understand this pragma only at function scope