Fixed a compile error Mac OS with gcc 4.9.

Std lib <array> includes tried to include <array> from eigen which is a
deprecated header and threw errors.
Silenced some warnings in external libraries.
Fixed linker error with gtest.