Fix compatibility with old NME projects