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
Merge pull request #636 from omissis/master

Fix libtoolize name to compile on Mac OS X