Moved common.c into library common