Updated test compile to make it work with gdb