Fix compile error on newer GCC versions
Fix VM tests for changed type
More signedness attempts oh GCC 4.7