Detect the OS platform in the Makefile.