Change API for Apache 2.4 Compatibility 

These changes bring support for Apache 2.4 which is not backwards compatible with Apache 2.2. This code has been tested on Ubuntu 14.04 LTS running Apache 2.4.7.