Set constants to indicate whether APC is running

This is a lot better than checking over and over again whether APC is
running. Per #172.