make some functions static (patch by Dieter < freebsd at sopwith.solgatos.com >)