cpp: move non-public script/ headers to src/