Remove unnecessary compilation flags when compiling the Apache module. Hopefully fixes issue #1043.