Fix build errors in GCC12

* Resolved MLCE-862

Change-Id: Ifb58ad1073e2f44d37a7419693be889887719b7d
Signed-off-by: Pablo Marquez Tello <pablo.tello@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/7682
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Michalis Spyrou <michalis.spyrou@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
diff --git a/include/libnpy/npy.hpp b/include/libnpy/npy.hpp
index 24244ca..e4f2215 100644
--- a/include/libnpy/npy.hpp
+++ b/include/libnpy/npy.hpp
@@ -35,7 +35,9 @@
 #include <algorithm>
 #include <regex>
 #include <unordered_map>
-
+#include <type_traits>
+#include <iterator>
+#include <utility>
 
 namespace npy {
 
diff --git a/utils/command_line/CommandLineParser.h b/utils/command_line/CommandLineParser.h
index e8fabc4..523f25e 100644
--- a/utils/command_line/CommandLineParser.h
+++ b/utils/command_line/CommandLineParser.h
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2017-2020 Arm Limited.
+ * Copyright (c) 2017-2020, 2022 Arm Limited.
  *
  * SPDX-License-Identifier: MIT
  *
@@ -27,6 +27,7 @@
 #include "Option.h"
 #include "arm_compute/core/utils/misc/Utility.h"
 
+#include <cstring>
 #include <iostream>
 #include <map>
 #include <memory>