fixed check for osx, which uses dylib extension
Merge pull request #6 from octris/master

Fixed config.m4 for osx to search for dylib extension