clean up some compiler warnings (no reason to use signed integers for buffer lengths...