g++-4.4 needs divides to be qualified in logm.hpp