OK, I seem to have fixed the issue:
- Created a whole new workspace
- Imported my project into it
- It now builds and compiles
Maybe something got corrupted in the workspace files...?
This is not the first time this happened. I will try to confirm if/then it happens again.