fixing up the stat struct and mkstat for bitrig