Remove window dependency

This commit is related with #37 and #39.