fixes to bring project *back* to MS.NET compat

stuff I did for Mono broked the project files.
provisional Postgres stored function generation

It's a little hackish right now, due to the requirement that Postgres
functions announce their return type, but it should be good enough to
start using.