Added platform-dependent code

Add "src/platform" directory so it's easier to write code that depends
on single platform.