allow linking to ncurses without rpaths

https://src.omniti.com/omnios-private/ticket.php/55