Make cstubs-generated code more self-contained

`Cstubs.write_c` now writes out `#include` directives for the headers that are used in generated code.

Fixes an issue raised in #151.