Add --as-needed flag to yade-lib.
Comment some lines, where defined unused variables.