#4 include stblib and write C++ wrapper