generate constants from XS version
use FFI::Raw::PtrPtr (temp) to work around limitations in FFI::Raw