correct typo and fix linux build