Fixes for OSX build

net.cpp, serialize.h, and uint256.h modified to compile in OSX
environment.