Added multiple compile rule for pdf on Darwin