Re-enable static linking

but rather than using headers and attempting to run pkg-config just skip linking to the shard library and allow linking to the static lib via the command line options.