Modified project for Linux and fixed more minor errors.