added error callback to main.c.

brought over GNU and BSD makefile's from ogl43.  Since i am using a src folder, i had to modify the make files to reflect this.  the GNUmakefile works fine with the object: $(SRCF)%.c "action" (?) line, but the BSDmakefile uses a different method that i don't know if it will work.  Will check it out more when i actual care.