Get semanticsExtra building again

It has lots of commented out parts and a cheat, including all_cns, closed, and
all_locs, because I'm not sure if/how these will be useful in the future.