[build] hard-code ncurses uses in mac os X
[js] redundant line in array::join example overrites the example text
[mac osx] add define for timersub() support on mac os x