Lift file type matching into fatelf-utils
Move ELF declarations to common header.