Makefile compatible with OS X

The Makefile now detects whether OS X (Darwin) is being used, and changes the
extension suffix accordingly from .so to .dylib. On current Apple hardware,
i386 architecture is no longer applicable, so it is removed from the build.