Some MacOSX Fixes:

- added missing "using" in math.h 32 bit
- toolchain fix (defines overwritten x86_64 <=> X86_64)
- unix / windows line endings in toolchain file