Various minor improvements
Fixed malloc and virtual map system call