fix implicit cast warnings
fix erroneous definition of array of pointers / fix warning