Make compile and run stages optional.