Fixed linux build errors