Fixes for minting page and associated functions.

Fixes for networking setup in main.cpp along with the addtion of a typedef int64