Properly initialize platform variable.

Didn't compile with some compilers in some modes.