cleanup enum-related macros and unused swig files