Fixed unused variable errors in gcc compilation #30