Attempted fix for FPE on 64 bit
Fixes for implicit declarations