First fixes for a 64bit compatible ftp extension