Fix sandbox compilation errors