AL: fixed compilation errors on MAC OS X