Load shared extensions first

This means shared extensions will be loaded before the ones in the lib
directory so compatibility can be maintained.