foreign: React final compilation fixes