dlopen check was linking against libpng which failed in case of arm targets.