Fixed pointers and warnings

Some warnings became errors.