Updated the build system to try to fix compilation on Ubuntu lucid