postgres provider: fix some error messages
fix warnings
help viewer: report errors and make it work from windows build directory