I haven't got a clue what all those errors are for (don't use the OS or compiler) but when making an OS it's usually not a very good idea to use calls that actually use another OS...