add non-member begin/end methods for older compilers