compiling gd and jpeg