make cmake includes work correctly as subproject, kill useless typedefs

... with ${TEN_SOURCE_DIR}.  also simplify pathnames a bit.
also eliminate unused typedefs, so the warning about them need not be suppressed