Add N-body test, make it compatible with VC++