build: Add shared module to auxiliaries compile.

This problem seems to affect PGI only. I guess all the other compilers
optimize and fold the constants in, but PGI still requires the constants
module to link everything.