Fix apache module 0.9.0 compatibility issue

The `apache` base class should be declared before any subclasses
(like `apache::mod::wsgi`) or defines (like `apache::vhost`)
because the base class does the variable initialization that the
subclasses utilize.

Fixes: bug #1226687

Change-Id: Ia1d694893d8a2e7d38769d2e43076a061e875b54
(cherry picked from commit 9a76675cd40788a8d81ab907da294f9a6698850e)