Add CMAKE_SYSTEM_NAME for Darwin and Linux.