Fix ccall warnings with static compile