fix compile
a couple of changes introduce in 3.0.9 that break build