Fix linux build

A couple of minor fixes to get it to build on linux.