Modified to be compiled with CLang (on LLVM 3.1) without warnings. The issue #6 still persists even with the new CLang compiler.