Fix the Makefile for Linux

Linux uses puts the version at the end of the soname, while OS X puts
it in the middle. Also, case issues.