Added conditional compilation

Closes https://github.com/PistonDevelopers/piston/issues/409