Fixes to Windows build behaviour

Various fixes to ensure WebODF is able to build on a Windows environment. This isn't perfect yet, but the remaining broken commands (compiled.js-target & simplecompiled.jst-target) now fail entirely due to the command-line length exceeding the maximum allowable limit on Windows.