added cocoa lib
recovered old Makefile