Fix compilation under GCC

- wrong class definition ordering between "shared_ptr" and "shared_ptr_count"