fixed foundation::int_log2() on gcc.