Build improvements

Mostly handling the case that someone didn't do `git clone --recursive` more elegantly.