Alter mfb() to cast as unsigned long instead of signed

Fixes a large number of "narrowing conversion of ‘-2147385335l’ from ‘long int’ to ‘long unsigned int’ inside { } is ill-formed in C++11 [-Wnarrowing]" build errors.