Fixed build warnings for device.