some compilation errors and system related changes. there is no platform independent libc api to get time. currently getting time in seconds