fix windows compilation and convert files to unix format