Fixed copy errors, and removed win code

Fixed some errors from copypasta and took out the windows specific code.