Fix compiler error on Win32
Disallow assignment operator

Fixes compiler warning on VS2013
Use size_t for sizes

Also fixes an unused variable warning.