added mask support
made setup.py work with both win and linux