Remove option -g as it is non-portable yet does not have any effect on the test-suite. (Fix for bug #3024)