Fix main exit code and build.

/cc @raronson @charleso Fix for build.