Cleanup.
Updated C99 header.
Fixed type.
Added shared library support.
Merge remote-tracking branch 'upstream/master' into pybgfx
switched to c99 api