Adds generic constructor function based on OS