Added conditional to allow compilation on mac os x

since libtoolize on mac is called glibtoolize, it needs to be checked and set for compiling the framework in Mac OS X