define RANLIB if not defined and more tweaks to linux mkaefile work