Fix C++ compiler errors in init2.c

Add required casts.
Fix C++ compiler errors in load.c.

Add required cast.  Fix parameters for file_open().