Some versions of cc on Darwin don't support -gstabs

So test for support before using it

Signed-off-by: Steve Bennett <steveb@workware.net.au>