Module compilation and import