updated for windows. fixed pragma comments.