Initial kecinzer commit

Make compatible with latest toolchain like SM 4.10.0
Also added optimized compile flags.