mv mylib.h mylib.c
  gcc -c mylib.c -o mylib.o
Then link it as a .so/.dll or in a .a library. Done you can use it like any other library.

I still need to parse the header. For 90% of libraries you can just parse the subset of C that's required for function declarations.