Refactored inclusion of shared libraries.