build the browser library with more reliable library dependency detection
add some invalid argument assertions