building shared library in linux, but timer seems broken