Add device_id to list of flags passed to cmake