improve the Makefiles

1) disable libgc parallel garbage marking when debugging, to restore determinism
2) add option OPTIMIZE=no to library makefiles