detect platform in xpcshell, not from makefile.