MRP-1780 build: support for client on 2.6.32-431.5.1

getname()/putname() changed between 2.6.32-279.2.1 and 2.6.32-431.5.1
to deal with struct filename in order to make auditing easier.
Add configure check for that and handle both kinds of getname() and
putname().

Signed-off-by: Vladimir Saveliev <vladimir_saveliev@xyratex.com>
Change-Id: Ife4396ee85ecc5a53d59a4e93c69b4e0f8f4b39f
Reviewed-on: http://es-gerrit.xyus.xyratex.com:8080/1772
Tested-by: Jenkins
Reviewed-by: Alexander Boyko <alexander_boyko@xyratex.com>
Tested-by: Elena Gryaznova <elena_gryaznova@xyratex.com>
Reviewed-by: Denis Kondratenko <denis_kondratenko@xyratex.com>