Streamlined build process. Pulled invariants out of oilrrt.c.