Backporting patch to support hugepages from T. Janjusic on top of 0.3.10

Backporting patch. All credits go to T. Janjusic and the other contributors
of these thread:

https://bugs.kde.org/show_bug.cgi?id=333051

Signed-off-by: Marc Sune <marc.sune@bisdn.de>