- Fix for RelWithDebInfo and MinSizeRel build types - Use -march=native instead of handcrafted detection when possible - Refactor whole thing to reduce code duplication