Undefine _auto_set_build_flags
This allows conditional cmake builds for tests and tools to complete in
the absence of build and link flags getting in the way, without losing
them for the main %cmake build where the same flags are exported anyway.
This is still not enough to pass the test suite.