foreign: React compilation fixes