Fix minor errors allowing compilation