Remove all runtime dependencies.

Replaces the functions used with our own functions.