opkg: fix problems in opkg_install_package and implement opkg_remove_package