Compiling winelib dependant code with g++