fix several small issues on mac

fixes horizontal scrolling https://github.com/ajaxorg/ace/issues/1466 and https://github.com/ajaxorg/ace/issues/1498
@lennartcl