Fix build on linux
Remove Windows code
Remove windows build, add optimization for release, fix warnings