build: Convert crypto detection/selection to new macros.