use more general type for flags and functions from Foreign.Marshal.Utils