Work around for a bug in libsndfile.