Improved OS/ABI detection based on PT_NOTE