yet another workaround for #300 for static libraries