Compiling with Xcode 3.2.6 requires we insert these casts.
Fix preferences panel appearing behind Shroud's backdrop when Shroud is hidden on Mac OS X 10.6.

Also fixes an incorrect argument type, which somehow didn't get warned about on a newer compiler.