Added references and hintpath

Fix the build