build: Fix some warnings with GCC 4.10 with namespace error - Credit to engstk