phylib: make local function static