windows compatibility tweaks
new windows luajit libraries
add checks that environment was allocated