Added allow_pure_perl option. Closed #45