[x86] Add separate source file for stubs and hacks

Signed-off-by: Anup Patel <anup@brainfault.org>