fixed building with g++ and paths