make position thread safe on read
add missing LinkDef.h