[enh][compiler] add library token to declare library objects