Fix linking error on release Mac Os, add lib cocoa to install target