Non-zero exit on failure in compile

Previously, if a failure occurred in compile, the exit code was
undefined. To meet the buildpack contract, a non-zero exit code is now
returned in the case of a failure in the compile script.

[#49421485]
Merge 49421485-compile-non-zero to master

[Completes #49421485]