Fix playerglobals build to properly build in AS3 mode
Improve error logging for playerglobals build
Merge pull request #1111 from tschneidereit/globals

Slight improvements to playerglobals building