Fixed linux's type conversion functions.