Build test targets with -nodefaultlibs to avoid libgcc correctly and still hit main()

Change-Id: I3063ad9adb6f4b87f0616e8a5e1182a1c6c9725b