Automatically determine libs required by NetBSD .so's