removed stdlib dependency from common.h