Cleanup build system and correct issues with the g11n lib in minified builds