Windows compilation fixes for znode.

interface is a reserved word in MSVC, and cast issues