fixed issues with google closure ADVANCED_OPTIMIZATIONS compilation