Simplify toggle button handling
Fix windows detection

Mac OS X == Darwin. Darwin isn't windows
Fixes for Safari

Safari's flexbox support requires '-webkit-' prefix
Publish release