Don't define public api for programs on non-Windows

Same change I just made on Windows.