g++ gets mad because of strerror being undefined. A simple #include <cstring> in each file seemed to fix the issue.