Move platform specific bits to platform/ directory