default value for NCURSES_OPAQUE
fix conversion warnings
Use clock_gettime() when available and get rid of deprecated gettimeofday()

Conflicts:
	extconf.rb
Remove redundant parentheses