A couple fixes to Parser.cpp.

Adds some header declarations and missing namespaces.