Portability

- Attempt to fix build warnings.