windows 8 fixes

Signed-off-by: Janos Laube <janos.dev@gmail.com>