Added missing static qualifier, and inline hint, to internal functions g++ 4.4.5 with -Winline says that only make_error is not inlined since calls to it are unlikely.