update_engine: fix build with GCC 4.7.x, prune unnused dependencies