Update memory requirements for g++ compiling

Compiling with g++ fails with out of ram on Launchpad VMs with 4GB RAM + 1 GB swap
Merge pull request #2410 from pnorman/patch-1

Update memory requirements for g++ compiling