Allow setting extra make flags, and handle failures better.
Fix some parallel build unsafety in the Makefile.