Moved some dependencies away from pip to apt to hopefully speed up installation.