Meh, changed order back to searching for libraries and then headers.