Simple win32/linux app to generate a sine wave