Fix -Wcast-align warnings when compiled with clang