Use random() instead of arc4random() for portability
Add "-undefined dynamic_lookup" to Pd LDFLAGS