fixed  mac os makefile link failed error