x86: Make dl-cache.h and readelflib.c not Linux-specific