Added Linux generate script, Fixed Linux compilation issue