refactor defines into svm_defs.h