Follow up fixed for Pin Code Feature
-Fixed some warning in Windows.
-Fixed 'pincode_charselect' where it doesn't work properly

Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>