Add prototype for SetLastError (fixes build, as it is used elsewhere)
Function never fails, return 0 (fixes w32 build)