fix compile with clang
Fix gdb version detection.

Whether I don't get regexp's at all, or it was really a weird (and even
broken) way to check the gdb version.

BUG: 334114