Fixes for Windows
Merge branch 'postgres' into mongo