Added #ifdefs in appropriate places so it doesn't explode if ncurses doesn't support mouseevents