ctk-curses: Guard ncurses-specific mouse function calls

The mouse support is ncurses-specific so guard it with proper #ifdef.