install target doesn't build shared library

- fixed by making the default target depend on dll
- need to set PIC flag for shared library targets