Fix libtoolize name to compile on Mac OS X

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