The functions SDL_malloc(), SDL_free() and SDL_strdup() were used only because strdup() was not available everywhere. Now that it is available, use the native version of these functions.
Include config.h and compat.h in common.h, and include common.h from all source files.
The process API provides the system-specific implementation, the adb API uses it to expose adb commands.