Fix issue #18

Fix issue #18 by always selecting .dylib for Mac.