test compile shared objects