Fixed linux compile errors and formatting in RedstoneSimulator.cpp