Fix compile error on OS X

process.platform returns "darwin" on Mac OS X. Just a quick fix for that.