Fix build in distros that split curses into some directories