Compile error fix in lib

Signed-off-by: Claudiu Ghioc <claudiu.ghioc@gmail.com>