Fixed bug with RPATH option building on linux