Preventing system sleep during rendering on mac