Update system.cpp

Fixed conditional compilation around include and library