Include function name in SystemError's message
Add missing #include <string>