osx: make kivy compatible with macport, brew and virtualenv. closes #1297