Remove internal bn dependancies from speed.c