added curl support; removed GNU-specific stuff