Copy platform.hpp into src directory in cmake build.