Bugfix: Fix errors and warnings when compiling with clang.