Fix for issues 21 and 22 on github. This removes use of unistd.h on windows and correctly includes expat for static builds