Small build system overhaul.
Fixes issues in builder when HTML not enabled.
Saves some bytes in the complete version.