avoid pointer size warnings: cast size_t to unsigned long, format as such
Merge remote-tracking branch 'upstream/master'