Thanks. It does work. Should have done this a lot earlier

Basically, I move the project directory to somewhere else. Did a "New->kernel downloadable module" and created the project. Copy only the source files back, added the WPIlib path and compiled. It worked!