fixed instances of 'warning: initialization from incompatible pointer type'