update common make file to propery link runtime library
make runtime functions extern C