Set SONAME

Inspired from what openspecfun does.
Change PREFIX and LIBDIR to lowercase

This is the standard name.
Use $(includedir) instead of hardcoding $(prefix)/include
Merge pull request #37 from JuliaLang/soname

Build fixes