Added preprocessor for Windows and exit options