Changes for compatibility with urxvt