Removed more #defines and unused variables.

There will be a new branch pretty soon called ‘cleanup’. While pruning
will take care of removing references to other platforms, cleanup will
focus on making the code more readable. There are not as many comments
throughout the code as I would like, so I will try to comment some more on
various blocks after careful analysis of the statements.