Fix build errors on mac.

Also fixing lack of a build step when using local source version of
code.