Fix compiler warnings
http://stackoverflow.com/questions/21128092/d-expects-argument-of-type-int-but-argument-2-has-type-long-unsigned-int indicates that %d should be %zu in these cases