Added deps to final build also fixed deprecation warning

Signed-off-by: Alessandro D'Aquino (elara) <alex@midokura.com>