const: constify some static variables
windows: remove custom entry point

The default launcher seems to work.
windows: use the proper version check
rand: cast to integer
warning: use isNaN rather than the <>= operator