Add some missing casts, sdcc is picky about it.

I'm migrating my (dated) PIC18F port to the latest version. `sdcc` v3.3.0 didn't compile some `memset` calls, casting was necessary.