Add a BUILD_FLAGS variable so that autoconf checks have a place