Fix linking against terminfo on Gentoo

ncurses can be build without a separate tinfo library. This is the
default on Gentoo unless the tinfo USE flag is enabled.
If there is no separate tinfo library, the main curses library needs to
be linked instead.
Fix compiling voglperf32 on non-multiarch systems

For some reason CMake doesn't natively support lib32 paths :/