Modularized the build system.