Fixed warnings

Fixed all warnings when compiling with -wAll