Guard against THRUST_VERSION
Handle arch correctly
Guard with THRUST_VERSION