Bugfixes, refactorings and new builder module for setting custom mono defines.