Making install platform independent.
Fixiing library type of OS X.