build: Fix some warnings with GCC 4.10 with namespace error - Credit to engstk
fix build errors using gcc-4.10