Move platform definition to header. Fixes #17