Fixed some linux build errorss.