This now uses the shared library for some of the functions.  Next step should to be to integrate less horrendous spatial hashing