Copy platform.hpp into src directory in cmake build.

This makes the cmake build match the makefile build.