make buildpack a bit more portable

Basic set of changes to make the buildpack work on Heroku. Also, improved the compile_spec tests a bit to report more information in case of failures.