Wrap ````PIOS_SENSORS_Register(PIOS_SENSOR_ACCEL, dev->accel_queue);```` with ````#if defined(PIOS_MPU6050_ACCEL)````.