This is one huge / ugly patch. It uses the new 3.7 namespaces and
include path stuff.
I stayed away from that _impl pattern because that's just dumb.
Based on original patch by Dimitri Stolnikov <horiz0n@gmx.net>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>