modify build system to replace extremely fragile error code generation mechanism