Fixed BD-J / JVM failing to load on release build

SetEnvironmentVariable() is not setting CRT internals correctly, so _tputenv() needs to be used instead.