Hi Marto,
Yes, I experienced the error also after installing libglm-dev package, but The problem resides to the <cmath> header:
infact after I've modified the Makefile.PL (deleted the libglm check part) and after having changed the libglm header path in the .xs file, it appears that the libglm-dev package require <cmath> header which (IDKW) on Ubuntu is not avaiable