Moved stderr redirecting to main.m
Added OSX test app