Helper to compile and extract shellcode