Add installer for OS X

Probably works on Linux as well but I tested it only on OS X. Ideally, the script should be merged with the Windows version to avoid code duplication.