make vbox usable as library

Basic split between vbox library and binary.