There are many viable compilers and compiler levels, which have been tested, that you can use for Apache and third-party plug-in modules.
The primary concern with determining if a different compiler can be used is when the third-party module, or libraries it uses, are implemented in C++. Different compiler versions may use different C++ application binary interfaces (ABI), in which case the behavior is undefined.