Some cmake clean up
Add rules/common.cpp