Add const node accessors, fix C++98 compliance