Remove some Linux-isms to allow builds on other platforms