unnecessary compare of usec
check return values
added stddef.h for size_t
include platform-support, which is the correct def. for platform_usleep, mark inputSidFile external for clarity