Declare flags as integer so they can be combined
Merge pull request #9 from fracek/fix-flags

Declare flags as integer so they can be combined
Index exported bindings and avoid duplicates