Even more hackery into setup files, but this should fix
pure builds, at the expense of the inability to 'clean'.

Will deal with later