Added compiler warnings for gcc builds
Removed unused variables
Changed vector references
Changed vector pointers
Changed vector pointers