When building with apache 2, use "apr-config --cppflags." Failure to do this means structures like request_rec might not actually line up the same way they do in apache.