Add gcov option to scons script (rebased onto develop)



This is the same as gh-965 but rebased onto develop.

----

You can now add the option gcov=1 when building to generate the gcov files and a single coverage executable that runs unit and integration tests.