rename the “tilde” function; apparently, some system headers define it
prototype for a static function used before it’s defined

XXX add protos for all static functions (just: hard to find them)