Fix link error in Mac OS X