Fixes for Windows
Merge branch 'postgres' into postgres-fay