Make imports of Ngl and Nio conditionall