Better vertex buffer construction, supporting packed data.
Fixing warnings.