fixed windows build and changed tabs to spaces