update for newer rust: use libc crate instead of std::libc
Add RWops struct implementation
fix #38, use close_on_drop option in RWops