Merge local BRL-CAD changes

Second round of changes from BRL-CAD - minor tweaks, clears some warnings, Windows compilation fixes.