Move geometry handling into a new library "libsnoggeom.a"