16-bit index buffers v2

Updated version of #73. Doesn't merge more than 65536 world vertices.

Since mesh numVerts is already a short integer, all world meshes will fit in a 16-bit index buffer.

Also fixed VS2012 type casting errors.