Would be nicer to make this:
```
if :shlib_ext in names(Base.Sys)
    import Base.Sys.shlib_ext
    const dlext = shlib_ext 
else
    import Base.Sys.dlext
```
or similar.