cleanup after stabilization

(Portage version: 2.2.8/cvs/Linux x86_64, signed Manifest commit with key 0xAABEFD55)
x86 stable wrt bug #513728

(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0xC42EB5D6)
EAPI bump. Fix missing include, move log2 function to its own namespace, convert sed scripts to patch.

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A792A613)
x86 stable wrt bug #497490

(Portage version: 2.2.8-r1/cvs/Linux i686, signed Manifest commit with key 0x4F1A2555EA71991D!)
amd64 stable wrt bug #503058

(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0xC42EB5D6)