3.12: update to latest mainline

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>