Added preprocessor to determine whether windows or unix