Fix possible compile error with open() (fix #294).