Build improvements

Fixed up a few things that I came across while making a Homebrew recipe for atosl.