All floats to doubles in alexlib
C casts to C++ casts in alexlib

Add a "return NULL" in PrimeFactors in case we fail to find any.