fix for windows issues

Fixed several backslash-related path problems in build process.