Fixed scroll to lines when caret moves out of view (Issue #216); OS X build fixes

IDE building fails without include paths being set to "OpenAL/al.h"
Xcode Base SDK changed from "OS X 10.6" to "current OS X"
Up down and Enter scroll to the current line if it is out of the Text Editor view.