Removed all unused libraries and warnings