fix macosx app linking