Would you please try to compile this. It is working for me with gcc=4.8.1 and clang-3.3.0
https://gist.github.com/endJunction/6382165