Fixed compile error for -Wduplicate-decl-specifier on OSX