detect Mac OSX and Windows, fall back to Linux