ifdefing the windows specific stuff

doing this so that when I go to compile this I can have an idea what
goes where and redesign it in a way that it works more platform portable