Add apt-get update if compile_time is true, COOK-4534