in reply to Portable Build

Delve into Module::Build and understand how it is supposed to work, both as a installation program, and how it works with various systems. It contains modules that are used when it is run on different operating systems. That sounds like want you are planning on doing.