Fixed preprocessor typos.
Implemented Linux functionality.