Tweaks and improvements to hugepage allocation