And enable to copy back the return value of wasm main function when calling wasm_application_execute_main, add license headers in wasm-c-api samples, fix several issues reported by klocwork.
it is allowed that all imported functions and globals can be linked by multi-module feature automatically or by wasm-c-api manually