Fix some warnings

Prevent any warnings caused when compiling with -pedantic and -Waddress