Added support for native library loading; build shared libspn by default