Use SIMPLE_OPTIMIZATIONS compilation level instead to avoid externs problems.