Updates to support building out of tree

This cleans up paths so that building in Erlang project directories
works for x86. There are still hardcoded things to the Beaglebone is the
naming, but this fixes the functional aspects.