Added support for pointing out static library location with STATIC_LIB_<libname>=..libname.a
Use .dylib extension on OSX