This reverts commit c91254db. It was throwing error: g++: error: unrecognized command line option ‘-resource-dir=