add some support for *_ADJACENCY primitives

Patch contributed by Johannes Brunen, many thanks!
fix return type
fix header guard
fix return type
added: vertex attrib divisor
fixed a nasty typo (right instead of width)