Fixes for the ELF PIE main detect