Fixed compilation for Clang v3.4.2.

There were compilation errors before these changes with clang++ v3.4.2 (system: Manjaro GNU/Linux).