Use the correct dynamic lib extension on Darwin