Rather than cut and paste, divide your project into platform agnostic files and platform specific files and/or use preprocessor directives to customize the code. Most of my work is for Windows, and it's nice to use it as a test bed for the Linux stuff using tools that are familiar.