fix return value warnings on some methods.
remove unneeded library.