Update speed code to compile on linux

Add some LDFLAGS, strict function prototypes
Add missing default speed parameter
Permissions should be in octal
Linux wasn't okay with heirarchical named semaphores