Changed device resources to be a singleton class.
Modified depth func to be less_equal so that painters algorithm works.
Added Lock class to wrap fast locks used to protect window list access.
Removed console based objects and direct access to text grids by
NehackDxMain.
Copied winnt.c to sys/win8 to allow win8 specialization.
Fixed bug with having standard windows leak when game is saved.