Fix for OSX

Changes ext.jl to not hardcode .so extension, fixes on OSX, not sure about Linux or Windows.