Fix depencies in package generation