move @useDynLib annotation to halfwidthen.cpp