build: check for glibtoolize or libtoolize command

glibtool or libtool can be installed on OSX systems.

Fixes #1200.