Update GSSetupPrimCodeGenerator for x86_64.

offsetof requires the expression to be constant to get the offset.
Use a combination of offsetof + sizeof to get the correct offset.