replace several uses of the anon namespace with GCC_FINAL