Fix for: Compilation failed: POSIX named classes are supported only within a class at offset 0