Add dependency to precompiled header file on gcc

Otherwise cpp files will not be rebuilt if the header file changes.