[dispatcher] Updating CCDevice.cpp for linux.