Fixed problems with building on MagnumCI