Fixing build issues with standalone Reuse/Spatial distance tool