move APIC-related code to separate file, with its own initialization to avoid circular dependency fixes #976 This was SVN commit r10315.