opkg: fix host compilation on Darwin (libopkg_test failed to link)