fixed compile errors on Linux and corrected spell miss