add missing lib dir and needed deps