supply BUILD_FLAGS for HEAD, closes #2