added error.cpp to makefile