On Linux/AMD64 object files can't be reused between static and shared
libraries. This results in error:
relocation R_X86_64_32 against `apr_terminate' can not be used when making a shared object; recompile with -fPIC

Solution is to build from source for both static and shared.