move signal_hook out of console mode #ifdef