CMake: use copy_if_different instead of copy and only run PRE_BUILD on Windows as it is not required on *nix anyway.