Added advanced compiliation to release mode.