Make DeviceAPI into a C++11 enum class, or a simulation thereof if not in C++11.