For Windows, the Cygwin toolkit, as other have already said, makes this very easy, and for the Mac, since OS X is Unix, there is no problem, but I have absolutely no clue what it takes to compile *nix ...