Fixes to Windows build behaviour

Various fixes to ensure WebODF is able to build on a Windows environment.

The only target that still fails on windows is the Dojo build step. This only fails because cat + patch are not readily available on Windows. This can be worked around by installing msys or similar however.