Fixed compilation with -Wall -Wextra -Werror

This is minor chages but makes library compileable with strict settings