Mac (CLANG) compiler warnings

Fixing compiler warnings with CLANG (using ```./configure --enable-werror``` makes compiler warnings into errors. use when developing).