Pulled a fix to the simulator app ("long" is 64-bit when 32-bit was needed) from master. sim-eng is useful for verifying the x86 SMP stuff. Also quieted a compiler warning. Change-Id: I399ea4923b7e0650d5f995e056c751374b057fbd