More fixes

This commit fixes some legacy errors and mistakes in the code, as well
as improves OpenAL integration by bringing the JOAL reference interface
into the Arpk module.