Moved functions to dl-sysdep.