Reverted platform.h, part of it was pointless/illogical