[Core/SD2] Make SD2 optional and fix a bug in config.h.cmake

This should fix a bug with enabling and disabling SD2/Eluna when compiling.