add headers for dprintf
fix 'someone does not honour COPTS correctly' when building for OpenWrt