Generate correct type for flags
Map <object> to <C-void*>, fix spelling