Removed unused libs and fixed warning.