Merge pull request #506 from Ronny95/master

Fix #504. Wire buttons in non-wire button tool no longer causes error
Fixed bug where the CPU editor would be unable to save files on Linux
Fixed bug where the GPU/SPU editor would be unable to save files on Linux
Merge pull request #509 from atomiccheese/master

Fixed CPU/GPU/SPU editors not saving on Linux.
EGP Emitter: Fixed improper positions involving parents
Deals with part of #497
Wire Adv: Attempt to fix rare error when an Ent has no inputs
Fixes #511 probably maybe
Fixed lamp not being updated properly
Fixes #513
Fixed error when trying to un-wire non-existing input