gcc got a little stricter with argument types

Allow compilation on more modern gcc. Tested and working on raspian - sorry I don't have access to older gcc to test backward compatibleness