Use separated linking configurations for macx and unix