Rewrite build system