Fixes for unsafe function pointer casts.
Fixing the Plink demo to not allow grabbing infinite mass bodies. (Thanks  AndrejMitrovic)