Fix building runtime environment