Fixed compilation errors and warning on pre-Kepler architectures, introduced in commit cdc5907f90066258322613197bc7230b1213adc1.