Setup build scripts for new intersection op, fix some build issues

Lots to do yet!