Fixed problem with the logger and release builds.