Added extra check to ensure APC is functioning. This is apparently necessary as tested on PHP5.4 on OSX.