Move platform-dependent routines to external.c