decode.h: Add missing headers to fix standalone compilation