Adds compatibility for windows8 and windows platforms