Move to macro-based flag system
Fix small zex bug
Fix alu test issue