Instead of using a define and conditional building of AES parts, move the AES encryption routines into a separate file.