Fix issue #1

Fixes a couple compilation errors, and then switches to a different method of checking for debugger presence under Linux.