Added support for curl.
Changed opkg libdir from /usr/lib to /var/lib