fix comile errors due to the csrc dir
fix clocking