added a fix for some os x second linkage