Fixing non-windows api defines.