Merge branch/2014-06-14/vm into the master sources.
Fix build on Windows.
log2 defined in C99 (not C90), not available on Windows.