fixing fat binary loading and subroutine search conditions