misc fixes
add '-L/usr/pkg/lib' for NetBSD