non GNU SOURCE support
use alternative for mremap in non-GNU system
add gtest into src, mod makefile

see "Why is it not recommended to install a pre-compiled
copy of Google Test (for example, into /usr/local)?"
`https://code.google.com/p/googletest/wiki/FAQ`