Utility: don't overwrite COMPILE_FLAGS if BUILD_STATIC_PIC is enabled.

Made the tests crash on assertions (they should be handled gracefully
w/o aborting).