RVM

Reorganize libvm.c so that platform independent code is in a separate file