Thanks for the clarification @araq. A blunder from my side.
Besides that - this thread is now solved. By increasing my swap to 15G and using most of my 11G ram, I'm able to compile my program in 2700 seconds now. Timewise it's a problem, but then I might need to look at the amount of macros etc. in my code.