Fix linking error

The functions were defined in the wrong namespace.