Fixed some warning issues and dir issues on Windows