[gtk2] fix some c99 warning and errors, rename some options