Fix some compile in detect_syn2.c