use cstdint instead of stdint.h
improve window and fullscreen mode switching
clean defines
enable wine registry if wine is available