foreign: React compilation on gcc4.4 fixes