several fixes from openWRT project
8 files changed