Fix app not deployed in windows8
Remove unnecessary functions