Cleanup on Windows

symlinking is only for Unix - I can't find implimentation for Windows
fixing compile errors on Windows
a liitle more code cleanup