Fix buildfile again, add some open() stuff