fix dumb bug in link and compile options. Ignore build folder