re-organize imports

make sure imports are placed outside of “extern C”