Added conditioning to discriminate OS so the same build script can run on Windows and Linux.