misc
add Settings class
fix compilation errors in release mode
set default locale to system locale
use locale aware number parsing/formatting