Fix the distinct pushed down for subquery
Merge pull request #1397 from VoltDB/ENG-distinct-bug

Fix the distinct pushed down for subquery
Fix compiling COW c++ test on latest clang.
Hopefully this doesn't ruin everyone's day.
ENG-6270: Deprecation warning if user tries to compile with project file.
ENG-6175: Fix bug with setting minimum heapsize.
Caused an excpetion on osx, but probably is wrong on linux.