fix rename enum in win32 and some other things
clean up example