Move platform specific definitions to its own header