Make install work on OS/X. See osmcode/libosmium#18

I just made the same changes that @tcmw proposed in osmcode/libosmium#18