fix error of gcc and remove old parser code.