Updated version

It makes sense to use $extralibs rather than hardcoding, and in fact that eliminates an "if", which is always better :-)

Thanks for considering,