debug mode now builds only active architectures.

this will increase compilation time by only compiling only for selected
architectures in debug.