Enable 7.6 build on all platforms

Patch is based on ab90767b13a0d42ddf7ca9d5d6f62b89ea8ac1a7 with cleanup:

* don't have sys/reg.h so enclosing with HAVE_* macro
* appropriate type casts added where build producing warning
* macro conflicts between GDB elf/common.h and Bionic linux/elf.h
resolved differently than it was in original patch. See comments
inlined.
* add prototype for pread64(), see 999577bc08ae1e8207df2fba640e5edae379bbac

Change-Id: I66054c555ae251fee171a2b085417093b0c2fe16
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>

Author: Pavel Chupin <pavel.v.chupin@intel.com>
Date:   Wed Jun 19 13:31:04 2013 +0400