support file extension .cpp/.cxx in mrbgem and tool