Per #8

Upstream fix for LMMS/lmms#996