I'm sorry but this isn't gonna be implemented in upstream anytime soon. This library has an LGPL license (and I wouldn't change it even if I wanted to, since I'll have to ask permission from all contributors) and statically linking it to proprietary code, which seems to be your use case, is nearly impossible without breaking LGPL rules and strictly prohibited.
I'm sorry but this isn't gonna be implemented in upstream anytime soon. This library has an LGPL license (and I wouldn't change it even if I wanted to, since I'll have to ask permission from all contributors) and statically linking it to proprietary code, which seems to be your use case, is nearly impossible without breaking LGPL rules and strictly prohibited.
https://stackoverflow.com/questions/10130143/gpl-lgpl-and-static-linking