real fix for the clang compile error for endseq. more clang compiler fixes for wrong const position.