Resolved G++ 4.8 and Clang 3.2 errors