foreign: More React compilation fixes