added ability to allow unused imported packages with compiler flag