added if's for define _GNU_SOURCE so the build won't bale out when it is already defined
Merge pull request #50 from xaocon/master

Fix for issue where GCC defines _GNU_SOURCE