Fix bugs, add "remove_item_from_inventory", etc.

Added a "remove_item_from_inventory" function, removed the
"graphics_window_disappear" function, and fixed various compile-time
errors.