Separate configure and build steps for better error handling and so that build folder can be cached on CI systems