make sytem calls safer/clean up headers

use native_internhal.h
declare board_init there
move terminal output to cpu/syscalls
add -ldl to LINKFLAGS for cpu/syscalls