Added install target

I do not have a MacOS system, so please test and adapt on Darwin where necessary.