ensuring that os x has the correct lib/ext dir