x86: move function prototypes to header files