Use relative path in versioned symlink lib
Fix proper versioned lib symlink for linux
Use versioned library names on Darwin too
Makefile: move the calculation of API_MAJOR advance. this fixes versioning lib for OSX