missing include, and c++03 compatibility