Fix bug in logger - add platform dependant compilation to allow creation of web-player builds.