Fixed tab spacing to comply with T3D coding standards.

Fixed multiple cross platform compiling issues.