fixes #585, now statically linking against stdlibc++

this should resolve the problem on Mac OS X with latest wine (tested against 3 machines). Should be tested on older versions + Win + Linux (probably)