compile:compile_core/3: reuse new 'core' option

compile_asm/3 uses 'asm' instead of 'from_asm'. Do the same by using
'core' in compile_core/3.