Mac support (issue #2): look also for .dylib files when default .so files don't exist