Move libavsmash.c/h into common directory.

libavsmash.c is expected that it is usable for both C and C++.