platform works with Linux.c
updated with peter change (we changed around the same lines and merge did not like it.
Cannot test Apple platform, but made code ready
platform compiles on Linux and Windows.
DocFormats/platform is now in place and compiles on linux/windows (apple pending)
This is first part of a bigger move where core is being "cleaned" to contain
only parts relevant for the abstract document format.
Test cases for platform is still outstanding.