protect imports to work with gdb 7.0.1; conditionally register printers; use printer.supports(type) method if it exists, else default to regex match