Misc SDL fixes until SDL 1.2 headers are fixed in emscripten
Fixed diffuse variable reference
added get / set methods for stdinIsATTY so it can be accessed by the JS layer