added weak dependencies, require.resolveWeak

#526
1.4.7