Issue -shared and -fPIC when building shared libraries with DMD. Fixes #138.