actually pass the CXX env variable to posix.mak
fix clang++ build error, first argument of main must be int

- explicitly convert to size_t
Merge pull request #3133 from MartinNowak/fixTravis

actually pass the CXX env variable to posix.mak