Possible fix of errors related when library is used via cargo.