Fix problem with loading console scripts with Windows-style EOLs. Generate sine lookup table on startup instead of loading it from file.